
<!-- 导航菜单 选项卡菜单-->
<!-- 页面定义 currentTab   li 加上判断 -->
<if condition="cmf_auth_check(cmf_get_current_admin_id(),'plugin/appmarket/AdminIndex/index')">
	<li <?php if( $currentTab == 1 ) echo 'class="active"';?> ><a href="{:cmf_plugin_url('Appmarket://admin_index/index')}">应用市场管理</a></li>
</if>
<?php if (cmf_auth_check(cmf_get_current_admin_id(),'plugin/Appmarket/Publish/index') ) { ?>
	<li <?php if( $currentTab == 2 ) echo 'class="active"';?> ><a href="{:cmf_plugin_url('Appmarket://publish/index')}">发布列表</a></li>
<?php } ?>
<if condition="cmf_auth_check(cmf_get_current_admin_id(),'plugin/appmarket/audit/index')">
	<li <?php if( $currentTab == 4 ) echo 'class="active"';?> ><a href="{:cmf_plugin_url('Appmarket://audit/index')}">模块审核</a></li>
</if>
<if condition="cmf_auth_check(cmf_get_current_admin_id(),'plugin/appmarket/publish/publish')">
	<li <?php if( $currentTab == 3 ) echo 'class="active"';?> ><a href="{:cmf_plugin_url('Appmarket://publish/publish')}">发布模块</a></li>
</if>
<if condition="cmf_auth_check(cmf_get_current_admin_id(),'plugin/appmarket/publish/particular')">
	<if condition=" $currentTab eq 5 ">
		<li class="active" ><a href="{:cmf_plugin_url('Appmarket://publish/publish')}">模块详情</a></li>
	</if>
</if>
<if condition="cmf_auth_check(cmf_get_current_admin_id(),'plugin/appmarket/ModuleCategory/index')">
	<li <?php if( $currentTab == 6 ) echo 'class="active"';?> ><a href="{:cmf_plugin_url('Appmarket://ModuleCategory/index')}">模块分类管理</a></li>
</if>
<if condition="cmf_auth_check(cmf_get_current_admin_id(),'plugin/appmarket/Config/index')">
	<li <?php if( $currentTab == 7 ) echo 'class="active"';?> ><a href="{:cmf_plugin_url('Appmarket://Config/index')}">常规配置</a></li>
</if>
<if condition="cmf_auth_check(cmf_get_current_admin_id(),'plugin/appmarket/CreateSiteTemplate/index')">
	<li <?php if( $currentTab == 8 ) echo 'class="active"';?> ><a href="{:cmf_plugin_url('Appmarket://CreateSiteTemplate/index')}">生成整站模板</a></li>
</if>

<if condition="cmf_auth_check(cmf_get_current_admin_id(),'plugin/appmarket/Template/index')">
	<li <?php if( $currentTab == 9 ) echo 'class="active"';?> ><a href="{:cmf_plugin_url('Appmarket://Template/index')}">模板管理</a></li>
</if>
<if condition="$currentTab eq 13 and cmf_auth_check(cmf_get_current_admin_id(),'plugin/appmarket/Template/particular')" >
	<li <?php if( $currentTab == 13 ) echo 'class="active"';?> ><a href="{:cmf_plugin_url('Appmarket://Template/particular')}">模板详情</a></li>
</if>
<if condition="cmf_auth_check(cmf_get_current_admin_id(),'plugin/appmarket/Template/publish')" >
	<li <?php if( $currentTab == 10 ) echo 'class="active"';?> ><a href="{:cmf_plugin_url('Appmarket://Template/publish')}">发布模板</a></li>
</if>
<if condition="cmf_auth_check(cmf_get_current_admin_id(),'plugin/appmarket/Template/classify')" >
	<li <?php if( $currentTab == 16 ) echo 'class="active"';?> ><a href="{:cmf_plugin_url('Appmarket://Template/classify')}">模板分类</a></li>
</if>
<if <if condition="cmf_auth_check(cmf_get_current_admin_id(),'plugin/appmarket/Template/audit')" >
	<li <?php if( $currentTab == 12 ) echo 'class="active"';?> ><a href="{:cmf_plugin_url('Appmarket://Template/audit')}">模板发布审核</a></li>
</if>

<if condition=" $currentTab eq 14 and cmf_auth_check(cmf_get_current_admin_id(),'plugin/appmarket/Template/particular')">
	<li <?php if( $currentTab == 14 ) echo 'class="active"';?> ><a href="javascript:;">模板审核详情</a></li>
</if>
<if <if condition="cmf_auth_check(cmf_get_current_admin_id(),'plugin/appmarket/TemplateFrame/frame')" >
	<li <?php if( $currentTab == 11 ) echo 'class="active"';?> ><a href="{:cmf_plugin_url('Appmarket://TemplateFrame/frame')}">框架版本配置</a></li>
</if>
<if <if condition="cmf_auth_check(cmf_get_current_admin_id(),'plugin/appmarket/CreateSiteTemplate/recordList')" >
	<li <?php if( $currentTab == 15 ) echo 'class="active"';?> ><a href="{:cmf_plugin_url('Appmarket://CreateSiteTemplate/recordList')}">整站模板导出记录</a></li>
</if>
